package com.cn.service;

import java.util.List;

import com.cn.dao.DepartmentDao;
import com.cn.entity.Department;
/**
 * 科类服务类，用于组装数据
 * @author ailinfei
 *
 */
public class DepartmentService extends DepartmentDao {
	/**
	 * 得到科类信息标题列表
	 * @return 部门信息集合
	 */
    public List getDepartment(String types){
    	DepartmentDao departmentDao = new DepartmentDao();
    	List dtoList=departmentDao.findListDepartment(types);
    	return dtoList;
    }
    //测试
    public static void main(String[] args) {
    	DepartmentService da= new DepartmentService();
    	System.out.print(da.getDepartment("0"));
	}
}
